package com.housediyadmin.model
{
	import com.housediyadmin.view.FittingAdminMediator;
	import com.housediyadmin.vo.Fitting;
	
	import mx.charts.AreaChart;
	import mx.collections.ArrayCollection;
	
	import org.robotlegs.mvcs.Actor;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2010/12/15
	 */	
	public class FittingModel extends Actor
	{
		[Bindable]
		public var fittingsArray:ArrayCollection;
		
		[Bindable]
		public var fittingIds:ArrayCollection = new ArrayCollection();
		
		[Bindable]
		public var selectedFittingArr:Array = new Array();
		
		[Bindable]
		public var selectedFittings:ArrayCollection = new ArrayCollection();;
		
		[Bindable]
		public var selectedFitting:Fitting;
		
		[Bindable]
		public var fittingGoodsArray:ArrayCollection=new ArrayCollection();
		
		public var currentFitting:Fitting;
		public var selectedFittingInGoodsEdit:Fitting;
		public function FittingModel()
		{
			super();
		}
		
		public function updateFittingModel(fittingsArray:ArrayCollection):void
		{
			this.fittingsArray = fittingsArray;
		}
		
		public function updateFittingGoodsModel(fittingGoodsArray:ArrayCollection):void
		{
			this.fittingGoodsArray = fittingGoodsArray;
			
		}
	}
}